package leetcode.D200.T126;

import util.ListUtil;

import java.util.List;

public class H126 {
    public static void main(String[] args) {
        String beginword = "red";
        String endword = "tax";
        List<String> wordList = ListUtil.parseStringList("[\"ted\",\"tex\",\"red\",\"tax\",\"tad\",\"den\",\"rex\",\"pee\"]");
        List<List<String>> result = new Solution().findLadders(beginword, endword, wordList);
        for (List<String> res : result) {
            for (String x : res) {
                System.out.print(x + " -> ");
            }
            System.out.println();
        }
    }
}
